﻿import 'babel-polyfill';
import Vue from 'vue'
import Frame from 'components/frame.vue'
import router from './router'
import ElementUI from 'element-ui'
import Vuex from 'vuex'

import VueResource from 'vue-resource';
import VueLazyload from 'vue-lazyload';


Vue.use(VueResource);
Vue.use(VueLazyload);
Vue.use(ElementUI);
Vue.use(Vuex);

router.beforeEach((to, from, next) => {
    // if (transition.to.title) {
    //     document.title = transition.to.title+'-[11]';
    // }afterEach
    next()
})




//图片服务器地址
const imgUr = 'http://iuezsfz.irebane.cn/';
Vue.prototype.getGuangDiaoImagesAddress='';
Vue.prototype.getNetImagesAddress=imgUr;
Vue.prototype.imgMini='_mini';
//登录状态
Vue.prototype.loginState=false;
//数据接口地址
Vue.prototype.getNetDataAddress="http://192.168.11.121:8040/pf";
//Vue.prototype.getNetDataAddress="http://localhost:8040/pf";
Vue.prototype.getNetImageAddress="http://localhost:8040/pf/file/showfile?filename=";
//Vue.prototype.getNetImageAddress="http://iuezsfz.irebane.cn/";
Vue.prototype.myRouter=router;
Vue.prototype.store={};

new Vue({
    el: '#app',
    router,
    render: h => h(Frame)
})
